﻿<controls:ChildWindow x:Class="Rage.UI.DG_Puzzle" Title="Solve Puzzle Boss"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
  xmlns:UI="clr-namespace:Rage.UI"
  ResizeMode="NoResize" ShowInTaskbar="False" SizeToContent="WidthAndHeight" Topmost="True"
  WindowStartupLocation="CenterScreen"
  WindowStyle="ToolWindow">

  <controls:ChildWindow.Resources>
    <UI:NullToVisibilityConverter x:Key="NullToVisibilityConverter1" />
  </controls:ChildWindow.Resources>

  <Grid x:Name="LayoutRoot" Margin="2">
    <Grid.RowDefinitions>
      <RowDefinition />
      <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>

    <Grid>
      <Grid.ColumnDefinitions>
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="Auto" />
        <ColumnDefinition Width="Auto" />
        <ColumnDefinition Width="Auto" />
        <ColumnDefinition Width="4" />
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="Auto" />
        <ColumnDefinition Width="Auto" />
        <ColumnDefinition Width="Auto" />
      </Grid.ColumnDefinitions>
      <Grid.RowDefinitions>
        <RowDefinition Height="29" />
        <RowDefinition Height="Auto" />
        <RowDefinition Height="Auto" />
        <RowDefinition Height="Auto" />
        <RowDefinition Height="Auto" />
        <RowDefinition Height="Auto" />
      </Grid.RowDefinitions>

      <!-- North -->
      <Rectangle Fill="Red" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="5" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Column="0" Text="North" Grid.Row="0" Grid.ColumnSpan="5" FontWeight="Bold" FontSize="14" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Column="0" Text="Locks" Grid.Row="1" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Column="1" Text="Starts" Grid.Row="1" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Column="2" Text="Turns Left" Grid.Row="1" Visibility="{Binding Converter={StaticResource NullToVisibilityConverter1}, ElementName=CK_ShowResSteps, Path=IsChecked}" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Column="3" Text="Turns Right" Grid.Row="1" Visibility="{Binding Converter={StaticResource NullToVisibilityConverter1}, ElementName=CK_ShowResSteps, Path=IsChecked}" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Column="4" Text="Results" Grid.Row="1" />

      <ComboBox x:Name="CB_Lock4" VerticalAlignment="Center" Margin="2" Grid.Row="2" SelectionChanged="CB_SelectionChanged" Height="88" Width="110" />
      <ComboBox x:Name="CB_Lock3" VerticalAlignment="Center" Margin="2" Grid.Row="3" SelectionChanged="CB_SelectionChanged" Height="88" Width="110" />
      <ComboBox x:Name="CB_Lock2" VerticalAlignment="Center" Margin="2" Grid.Row="4" SelectionChanged="CB_SelectionChanged" Height="88" Width="110" />
      <ComboBox x:Name="CB_Lock1" VerticalAlignment="Center" Margin="2" Grid.Row="5" SelectionChanged="CB_SelectionChanged" Height="88" Width="110" />

      <ComboBox x:Name="CB_Start4" VerticalAlignment="Center" Margin="2" Grid.Row="2" Grid.Column="1" SelectionChanged="CB_SelectionChanged" Height="88" Width="110" />
      <ComboBox x:Name="CB_Start3" VerticalAlignment="Center" Margin="2" Grid.Row="3" Grid.Column="1" SelectionChanged="CB_SelectionChanged" Height="88" Width="110" />
      <ComboBox x:Name="CB_Start2" VerticalAlignment="Center" Margin="2" Grid.Row="4" Grid.Column="1" SelectionChanged="CB_SelectionChanged" Height="88" Width="110" />
      <ComboBox x:Name="CB_Start1" VerticalAlignment="Center" Margin="2" Grid.Row="5" Grid.Column="1" SelectionChanged="CB_SelectionChanged" Height="88" Width="110" />

      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="2" Grid.Column="2" Text="X Left" x:Name="LB_Results4L" Visibility="{Binding Converter={StaticResource NullToVisibilityConverter1}, ElementName=CK_ShowResSteps, Path=IsChecked}" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="3" Grid.Column="2" Text="X Left" x:Name="LB_Results3L" Visibility="{Binding Converter={StaticResource NullToVisibilityConverter1}, ElementName=CK_ShowResSteps, Path=IsChecked}" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="4" Grid.Column="2" Text="X Left" x:Name="LB_Results2L" Visibility="{Binding Converter={StaticResource NullToVisibilityConverter1}, ElementName=CK_ShowResSteps, Path=IsChecked}" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="5" Grid.Column="2" Text="X Left" x:Name="LB_Results1L" Visibility="{Binding Converter={StaticResource NullToVisibilityConverter1}, ElementName=CK_ShowResSteps, Path=IsChecked}" />

      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="2" Grid.Column="3" Text="X Right" x:Name="LB_Results4R" Visibility="{Binding Converter={StaticResource NullToVisibilityConverter1}, ElementName=CK_ShowResSteps, Path=IsChecked}" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="3" Grid.Column="3" Text="X Right" x:Name="LB_Results3R" Visibility="{Binding Converter={StaticResource NullToVisibilityConverter1}, ElementName=CK_ShowResSteps, Path=IsChecked}" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="4" Grid.Column="3" Text="X Right" x:Name="LB_Results2R" Visibility="{Binding Converter={StaticResource NullToVisibilityConverter1}, ElementName=CK_ShowResSteps, Path=IsChecked}" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="5" Grid.Column="3" Text="X Right" x:Name="LB_Results1R" Visibility="{Binding Converter={StaticResource NullToVisibilityConverter1}, ElementName=CK_ShowResSteps, Path=IsChecked}" />

      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="2" Grid.Column="4" Text="X Right" x:Name="LB_Results4" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="3" Grid.Column="4" Text="X Right" x:Name="LB_Results3" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="4" Grid.Column="4" Text="X Right" x:Name="LB_Results2" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="5" Grid.Column="4" Text="X Right" x:Name="LB_Results1" />

      <!-- South -->
      <Rectangle Fill="DodgerBlue" Grid.Column="6" Grid.Row="0" Grid.ColumnSpan="5" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Column="6" Text="South" Grid.Row="0" Grid.ColumnSpan="5" FontWeight="Bold" FontSize="14" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="1" Grid.Column="6" Text="Locks" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="1" Grid.Column="7" Text="Starts" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="1" Grid.Column="8" Text="Turns Left" Visibility="{Binding Converter={StaticResource NullToVisibilityConverter1}, ElementName=CK_ShowResSteps, Path=IsChecked}" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="1" Grid.Column="9" Text="Turns Right" Visibility="{Binding Converter={StaticResource NullToVisibilityConverter1}, ElementName=CK_ShowResSteps, Path=IsChecked}" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="1" Grid.Column="10" Text="Results" />

      <ComboBox x:Name="CB_Lock4S" VerticalAlignment="Center" Margin="2" Grid.Row="2" Grid.Column="6" SelectionChanged="CB_SelectionChanged" Height="88" Width="110" />
      <ComboBox x:Name="CB_Lock3S" VerticalAlignment="Center" Margin="2" Grid.Row="3" Grid.Column="6" SelectionChanged="CB_SelectionChanged" Height="88" Width="110" />
      <ComboBox x:Name="CB_Lock2S" VerticalAlignment="Center" Margin="2" Grid.Row="4" Grid.Column="6" SelectionChanged="CB_SelectionChanged" Height="88" Width="110" />
      <ComboBox x:Name="CB_Lock1S" VerticalAlignment="Center" Margin="2" Grid.Row="5" Grid.Column="6" SelectionChanged="CB_SelectionChanged" Height="88" Width="110" />

      <ComboBox x:Name="CB_Start4S" VerticalAlignment="Center" Margin="2" Grid.Row="2" Grid.Column="7" SelectionChanged="CB_SelectionChanged" Height="88" Width="110" />
      <ComboBox x:Name="CB_Start3S" VerticalAlignment="Center" Margin="2" Grid.Row="3" Grid.Column="7" SelectionChanged="CB_SelectionChanged" Height="88" Width="110" />
      <ComboBox x:Name="CB_Start2S" VerticalAlignment="Center" Margin="2" Grid.Row="4" Grid.Column="7" SelectionChanged="CB_SelectionChanged" Height="88" Width="110" />
      <ComboBox x:Name="CB_Start1S" VerticalAlignment="Center" Margin="2" Grid.Row="5" Grid.Column="7" SelectionChanged="CB_SelectionChanged" Height="88" Width="110" />

      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="2" Grid.Column="8" Text="X Left" x:Name="LB_Results4LS" Visibility="{Binding Converter={StaticResource NullToVisibilityConverter1}, ElementName=CK_ShowResSteps, Path=IsChecked}" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="3" Grid.Column="8" Text="X Left" x:Name="LB_Results3LS" Visibility="{Binding Converter={StaticResource NullToVisibilityConverter1}, ElementName=CK_ShowResSteps, Path=IsChecked}" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="4" Grid.Column="8" Text="X Left" x:Name="LB_Results2LS" Visibility="{Binding Converter={StaticResource NullToVisibilityConverter1}, ElementName=CK_ShowResSteps, Path=IsChecked}" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="5" Grid.Column="8" Text="X Left" x:Name="LB_Results1LS" Visibility="{Binding Converter={StaticResource NullToVisibilityConverter1}, ElementName=CK_ShowResSteps, Path=IsChecked}" />

      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="2" Grid.Column="9" Text="X Right" x:Name="LB_Results4RS" Visibility="{Binding Converter={StaticResource NullToVisibilityConverter1}, ElementName=CK_ShowResSteps, Path=IsChecked}" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="3" Grid.Column="9" Text="X Right" x:Name="LB_Results3RS" Visibility="{Binding Converter={StaticResource NullToVisibilityConverter1}, ElementName=CK_ShowResSteps, Path=IsChecked}" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="4" Grid.Column="9" Text="X Right" x:Name="LB_Results2RS" Visibility="{Binding Converter={StaticResource NullToVisibilityConverter1}, ElementName=CK_ShowResSteps, Path=IsChecked}" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="5" Grid.Column="9" Text="X Right" x:Name="LB_Results1RS" Visibility="{Binding Converter={StaticResource NullToVisibilityConverter1}, ElementName=CK_ShowResSteps, Path=IsChecked}" />

      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="2" Grid.Column="10" Text="X Right" x:Name="LB_Results4S" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="3" Grid.Column="10" Text="X Right" x:Name="LB_Results3S" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="4" Grid.Column="10" Text="X Right" x:Name="LB_Results2S" />
      <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" Grid.Row="5" Grid.Column="10" Text="X Right" x:Name="LB_Results1S" />
    </Grid>

    <CheckBox x:Name="CK_ShowResSteps" Content="Show Results Steps" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="0,6,193,3" Grid.Row="1" IsChecked="False" />
    <Button x:Name="BT_CopyToClipboard" Content="Copy to Clipboard" Click="BT_CopyToClipboard_Click" Width="110" Height="23" HorizontalAlignment="Right" Margin="0,6,79,0" Grid.Row="1" />
    <Button x:Name="BT_OK" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,6,0,0" Grid.Row="1" />
  </Grid>
</controls:ChildWindow>